var oldDialog = new Object();
	function showDialog(dName) {
		if (!oldDialog[dName]) {
			oldDialog[dName] = $("#" + dName).dialog({
				autoOpen : false,
				height : window.screen.availHeight * 0.8,
				width : '30%',
				position : {
					my : "right top",
					at : "right top"
				}
			});
		}
		$.each(oldDialog, function(i, item) {
			if (item !== oldDialog[dName]) {
				if (item.dialog("isOpen")) {
					item.dialog("close");
				}
			} else {
				if (!item.dialog("isOpen")) {
					item.dialog("open");
				}
			}
		});
	}